/*
Spotter Exercise Manager
Copyright 2011 Evan Nelson.

This file is part of Spotter Exercise Manager.

Spotter Exercise Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Spotter Exercise Manager is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Spotter Exercise Manager.  If not, see <http://www.gnu.org/licenses/>.

The author can be contacted by emailing ean5533@gmail.com
*/

#ifndef PLOT_H
#define PLOT_H

#include <QtGui/QWidget>
#include <QDate>

#include <qwt_plot.h>

namespace Ui {
    class Plot;
}

class Plot : public QWidget {
    Q_OBJECT
    Q_DISABLE_COPY(Plot)
public:
    explicit Plot(QWidget *parent = 0);
    virtual ~Plot();
    void showSamplePlot();
    void showWtOverTimePlot(QStringList exercises, QDate *minDate = 0, QDate *maxDate = 0);

protected:
    virtual void changeEvent(QEvent *e);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::Plot *ui;
    static void centerWidgetOnScreen(QWidget* widget);

};

#endif // PLOT_H
